home *** CD-ROM | disk | FTP | other *** search
/ US Department of Defense…ndamentals 1.0 2004 April / US Department of Defense: Firewall & Router Fundamentals 1.0 2004 April.iso / sco / interface / menu.swf / scripts / DefineSprite_44 / frame_1 / DoAction.as
Encoding:
Text File  |  2004-04-05  |  496 bĀ   |  27 lines

  1. function set_parameters(alpha_value)
  2. {
  3.    i._alpha = i.newA;
  4.    i = this;
  5.    i.a = 2;
  6.    i.d = 5;
  7.    i.newA = alpha_value;
  8.    i.oldA = _alpha;
  9.    i.mymovespeed = 5;
  10.    _root.menu_position = -295;
  11.    _root.subtopicsmove(0,148);
  12. }
  13. function update_position()
  14. {
  15.    i.mymovespeed = ((i._alpha - i.newA) / i.a + i.mymovespeed) / i.d;
  16.    i._alpha -= i.mymovespeed;
  17. }
  18. onLoad = function()
  19. {
  20.    set_parameters(100);
  21. };
  22. onEnterFrame = function()
  23. {
  24.    update_position();
  25. };
  26. stop();
  27.